package br.net.woodstock.tickettoride.client.common;

import br.net.woodstock.tickettoride.client.TicketConverter;
import br.net.woodstock.tickettoride.client.utils.StringUtils;

public class StringTicketConverter implements TicketConverter<String> {

	@Override
	public String fromBytes(final byte[] bytes) {
		return StringUtils.toString(bytes);
	}

	@Override
	public byte[] toBytes(final String t) {
		return StringUtils.toByteArray(t);
	}

}
